﻿namespace Pp.Dto
{
    using System;
    using System.Collections.Generic;

    public class ProjectDto : ProjectSmallDto
    {
        public Guid Id { get; set; }
        private IList<LikeDto> _likes;
        private IList<AngelRequestDto> _angelRequests;
        public IList<AngelRequestDto> AngelRequests
        {
            get { return _angelRequests ?? new List<AngelRequestDto>(); }
            set { _angelRequests = value; }
        }
        public IList<LikeDto> Likes
        {
            get { return _likes ?? new List<LikeDto>(); }
            set { _likes = value; }
        }
        public IList<ProjectFollowDto> Followers { get; set; }
    }
    public class ProjectSmallDto
    {
        public Guid Id { get; set; }
        public string Image { get; set; }
        public bool AllowAngelRequest { get; set; }
        public string Name { get; set; }
        public string SmallDescription { get; set; }
        public string Description { get; set; }
        public ProjectCategoryDto Category { get; set; }
        public UserSmallDto User { get; set; }
        public double ProjectCost { get; set; }
        public string SignatureCollect { get; set; }
        public DateTime CreateDate { get; set; }
    }

}